package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.Date;

public class OuterPromotionPo {
    /**
     * order_id BIGINT(19) 必填<br>
     * 订单id
     */
    private Long orderId;

    /**
     * outer_promotion_id VARCHAR(200) 必填<br>
     * 外部推广id
     */
    private String outerPromotionId;

    /**
     * promotion_platform_open_id VARCHAR(200)<br>
     * 外部推广openId
     */
    private String promotionPlatformOpenId;

    /**
     * promoter_id VARCHAR(200)<br>
     * 推广人id
     */
    private String promoterId;

    /**
     * platform_id VARCHAR(200)<br>
     * 推广平台id
     */
    private String platformId;

    /**
     * pid VARCHAR(200)<br>
     * pid
     */
    private String pid;

    /**
     * outer_param VARCHAR(500)<br>
     * 外部参数
     */
    private String outerParam;

    /**
     * commission_rate DECIMAL(10,2)<br>
     * 推广人佣金费率.10.22%
     */
    private BigDecimal commissionRate;

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 
     */
    private Date addTime;

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 
     */
    private Date updateTime;

    /**
     * order_id BIGINT(19) 必填<br>
     * 获得 订单id
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 设置 订单id
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * outer_promotion_id VARCHAR(200) 必填<br>
     * 获得 外部推广id
     */
    public String getOuterPromotionId() {
        return outerPromotionId;
    }

    /**
     * outer_promotion_id VARCHAR(200) 必填<br>
     * 设置 外部推广id
     */
    public void setOuterPromotionId(String outerPromotionId) {
        this.outerPromotionId = outerPromotionId == null ? null : outerPromotionId.trim();
    }

    /**
     * promotion_platform_open_id VARCHAR(200)<br>
     * 获得 外部推广openId
     */
    public String getPromotionPlatformOpenId() {
        return promotionPlatformOpenId;
    }

    /**
     * promotion_platform_open_id VARCHAR(200)<br>
     * 设置 外部推广openId
     */
    public void setPromotionPlatformOpenId(String promotionPlatformOpenId) {
        this.promotionPlatformOpenId = promotionPlatformOpenId == null ? null : promotionPlatformOpenId.trim();
    }

    /**
     * promoter_id VARCHAR(200)<br>
     * 获得 推广人id
     */
    public String getPromoterId() {
        return promoterId;
    }

    /**
     * promoter_id VARCHAR(200)<br>
     * 设置 推广人id
     */
    public void setPromoterId(String promoterId) {
        this.promoterId = promoterId == null ? null : promoterId.trim();
    }

    /**
     * platform_id VARCHAR(200)<br>
     * 获得 推广平台id
     */
    public String getPlatformId() {
        return platformId;
    }

    /**
     * platform_id VARCHAR(200)<br>
     * 设置 推广平台id
     */
    public void setPlatformId(String platformId) {
        this.platformId = platformId == null ? null : platformId.trim();
    }

    /**
     * pid VARCHAR(200)<br>
     * 获得 pid
     */
    public String getPid() {
        return pid;
    }

    /**
     * pid VARCHAR(200)<br>
     * 设置 pid
     */
    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    /**
     * outer_param VARCHAR(500)<br>
     * 获得 外部参数
     */
    public String getOuterParam() {
        return outerParam;
    }

    /**
     * outer_param VARCHAR(500)<br>
     * 设置 外部参数
     */
    public void setOuterParam(String outerParam) {
        this.outerParam = outerParam == null ? null : outerParam.trim();
    }

    /**
     * commission_rate DECIMAL(10,2)<br>
     * 获得 推广人佣金费率.10.22%
     */
    public BigDecimal getCommissionRate() {
        return commissionRate;
    }

    /**
     * commission_rate DECIMAL(10,2)<br>
     * 设置 推广人佣金费率.10.22%
     */
    public void setCommissionRate(BigDecimal commissionRate) {
        this.commissionRate = commissionRate;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 获得 
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 设置 
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 获得 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 设置 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", outerPromotionId=").append(outerPromotionId);
        sb.append(", promotionPlatformOpenId=").append(promotionPlatformOpenId);
        sb.append(", promoterId=").append(promoterId);
        sb.append(", platformId=").append(platformId);
        sb.append(", pid=").append(pid);
        sb.append(", outerParam=").append(outerParam);
        sb.append(", commissionRate=").append(commissionRate);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}